let _env = 'development'
// let _env = 'production'

const apiEnv = uni.getStorageSync('apiEnv')

if (!apiEnv) {
  uni.setStorageSync('apiEnv', _env)
} else {
  _env = apiEnv
}

const BASE_URL_OPTIONS = {
  // development: 'https://hongliaoxingqiu.cww.icu', // 本地联调
  // development: 'http://tiyu.cww.icu/api', // 开发环境
  // development: 'https://test.server.geiqiutiyu.com/api', // 测试环境联调
  // development: 'https://hongliaoxingqiu.cww.icu/api', // 真机调试
  // development: 'https://server.geiqiutiyu.com/api', // 正式环境 旧
  development: 'https://yimen.geiqiutiyu.com/api', // 正式环境  新
  // development: 'https://player.srsztwl.cn', // 真机调试
  production: ''
}

export const env = {
  baseUrl: BASE_URL_OPTIONS[_env]
}